package cn.wicking.mapper.impl;

import cn.wicking.entity.User;
import cn.wicking.mapper.UserMapper;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

/*方式一*/
public class UserMapperWay2Impl extends SqlSessionDaoSupport implements UserMapper {


    public List<User> getUserMessage() {
        final UserMapper mapper = getSqlSession().getMapper(UserMapper.class);
        return mapper.getUserMessage();
    }
}
